package com.sayyi.demo.mybatis.mapper;

import com.sayyi.demo.mybatis.domain.Blog;


/**
 * @author xuchuang
 * date 2021/12/16 2:11 PM
 */
public interface BlogMapper {

    /**
     * 通过id获取blog
     * @param id
     * @return
     */
    Blog selectBlog(long id);

    /**
     * 新增blog
     * @param blog
     * @return
     */
    long save(Blog blog);
}
